<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="恢复NAS共享中的文件">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="nas_s_0056.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="30-OceanProtect 备份一体机 1.5.0-1.6.0 帮助中心">
<meta name="DC.Publisher" content="20240320">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="nas_s_0062">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>恢复NAS共享中的文件</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="nas_s_0062"></a><a name="nas_s_0062"></a>

<h1 class="topictitle1">恢复NAS共享中的文件</h1>
<div><p>当需要对已备份的NAS共享指定文件恢复时，可以参考本节恢复NAS共享中的文件至原位置、新位置或者本机位置。</p>
<div class="section"><h4 class="sectiontitle">背景信息</h4><ul id="nas_s_0062__nas_s_0060_ul1684123102616"><li id="nas_s_0062__nas_s_0060_li15684153110268"><span id="nas_s_0062__nas_s_0060_text19278102815148">OceanProtect</span>支持使用备份副本、对象存储归档的副本进行文件级恢复。</li><li id="nas_s_0062__nas_s_0060_li2871134142617">支持索引的文件系统兼容性请登录<a href="https://info.support.huawei.com/storage/comp/#/oceanprotect" target="_blank" rel="noopener noreferrer">OceanProtect兼容性查询工具</a>查询。</li></ul>
</div>
<div class="section"><h4 class="sectiontitle">注意事项</h4><p id="nas_s_0062__nas_s_0060_p15863642111819">当文件夹或文件名称存在乱码时，不支持文件级恢复。请勿勾选该类型的文件夹或文件，否则恢复失败。</p>
</div>
<div class="section"><h4 class="sectiontitle">前提条件</h4><ul><li>对于1.5.0版本，副本的索引状态必须为<span class="uicontrol" id="nas_s_0062__vmware_gud_0060_uicontrol483213401802">“<span id="nas_s_0062__vmware_gud_0060_text1711017353520">已索引</span>”</span>才支持文件级恢复。对于1.6.0及后续版本，索引状态为“<span id="nas_s_0062__vmware_gud_0060_text413155718286">未索引</span>”的副本也支持文件级恢复。</li><li>如果将NAS共享恢复到新位置，需要先将新位置的NAS共享，或者NAS共享所在的存储设备注册到<span id="nas_s_0062__nas_s_0061_text5542395141">OceanProtect</span>。支持的存储设备类型如下所示。<ul id="nas_s_0062__ul571916508480"><li id="nas_s_0062__nas_s_0061_nas_s_0059_nas_s_0013_li3415133617174">OceanStor Dorado V7</li><li id="nas_s_0062__nas_s_0061_nas_s_0059_nas_s_0013_li1739551514266">OceanStor V7</li><li id="nas_s_0062__nas_s_0061_nas_s_0059_nas_s_0013_li984654311123">OceanStor Dorado 6.x</li><li id="nas_s_0062__nas_s_0061_nas_s_0059_nas_s_0013_li151737411958">OceanStor 6.x</li><li id="nas_s_0062__nas_s_0061_nas_s_0059_nas_s_0013_li72988389413">OceanProtect 1.3.0及之后版本</li></ul>
</li><li>如果将NAS共享恢复到新位置，需要先在新位置的存储设备侧为<span id="nas_s_0062__nas_s_0061_text11734103918143">OceanProtect</span>配置访问权限。详细操作请参见<a href="nas_s_0025.html">步骤4：配置访问权限（适用于OceanStor V5/OceanStor Pacific/NetApp ONTAP）</a>。操作时，请为目标NAS共享配置客户端或者增加用户。</li></ul>
</div>
<div class="section"><h4 class="sectiontitle">操作步骤</h4><ol><li><span>选择<span class="uicontrol" id="nas_s_0062__nas_s_0061_zh-cn_topic_0000001839142377_uicontrol1387642214492">“<span id="nas_s_0062__nas_s_0061_zh-cn_topic_0000001839142377_text18761122134919">数据利用</span> &gt; <span id="nas_s_0062__nas_s_0061_zh-cn_topic_0000001839142377_text087662214918">副本数据</span> &gt; 文件系统 &gt; <span id="nas_s_0062__nas_s_0061_zh-cn_topic_0000001839142377_text2897115217345">NAS共享</span>”</span>。</span><p><div class="note" id="nas_s_0062__nas_s_0061_zh-cn_topic_0000001839142377_note1634925131911"><img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span><div class="notebody"><p id="nas_s_0062__nas_s_0061_zh-cn_topic_0000001839142377_p1934182521913">对于1.5.0版本，请选择<span class="uicontrol" id="nas_s_0062__nas_s_0061_zh-cn_topic_0000001839142377_uicontrol08045348196">“<span id="nas_s_0062__nas_s_0061_zh-cn_topic_0000001839142377_text980410346197">数据利用</span> &gt; <span id="nas_s_0062__nas_s_0061_zh-cn_topic_0000001839142377_text4804183441910">副本数据</span> &gt; 文件服务 &gt; <span id="nas_s_0062__nas_s_0061_zh-cn_topic_0000001839142377_text20804834141911">NAS共享</span>”</span>。</p>
</div></div>
</p></li><li><span>支持以NAS共享资源维度或以副本维度查找副本，本节以NAS共享资源维度为例进行说明。</span><p><p id="nas_s_0062__nas_s_0061_p142551140161511">在“<span id="nas_s_0062__nas_s_0061_text6827103218214">资源</span>”页签，根据NAS共享名称查找到需要恢复的NAS共享，并单击NAS共享名称。</p>
</p></li><li><span>在<span class="uicontrol" id="nas_s_0062__nas_s_0059_uicontrol1812414562220">“<span id="nas_s_0062__nas_s_0059_text18993182162710">副本数据</span>”</span>页面，依次选择年、月、天找到副本。</span><p><p id="nas_s_0062__nas_s_0059_p9918150182310">当时间上显示<span><img id="nas_s_0062__nas_s_0059_image886000161711" src="zh-cn_image_0000001792520510.png"></span>，即表示该月、该天存在副本。</p>
</p></li><li><span>找到要恢复的副本，单击副本所在行右侧的<span class="uicontrol" id="nas_s_0062__nas_s_0060_uicontrol144673212457">“<span id="nas_s_0062__nas_s_0060_text16241181213589">更多</span> &gt; <span id="nas_s_0062__nas_s_0060_text6433142318586">文件级恢复</span>”</span>。</span><p><ul id="nas_s_0062__nas_s_0060_ul31458297552"><li id="nas_s_0062__nas_s_0060_li1714532925520">对于1.5.0版本，从目录树勾选待恢复的文件。</li><li id="nas_s_0062__nas_s_0060_li1475353185516">对于1.6.0及后续版本，请先设置恢复文件的选择方式，再从目录树选择待恢复文件或手动输入待恢复文件的路径。<div class="note" id="nas_s_0062__nas_s_0060_vmware_gud_0060_note1195634711290"><img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span><div class="notebody"><ul id="nas_s_0062__nas_s_0060_vmware_gud_0060_ul14956124712297"><li id="nas_s_0062__nas_s_0060_vmware_gud_0060_li1095674772911">如果副本中的文件数量较多，系统可能超时，无法从目录树上选择待恢复文件，建议手动输入恢复文件路径。</li><li id="nas_s_0062__nas_s_0060_vmware_gud_0060_li19956104762918">手动输入文件路径时，请输入文件完整路径，例如：/opt/abc/efg.txt或者C:\abc\efg.txt。当输入文件夹路径时，表示恢复该文件夹下的所有文件，例如：/opt/abc或者C:\abc。路径中的文件名区分大小写。</li></ul>
</div></div>
</li></ul>
</p></li><li><span>选择待恢复的目标对象，及恢复目标位置。</span><p><p>恢复目标位置包含：<span>原位置</span>、<span>新位置</span>、<span>本机位置</span>。</p>
<ul><li><span>原位置</span>：恢复到原文件系统</li><li><span>新位置</span>：恢复到其他设备的文件系统</li><li><span>本机位置</span>：恢复到<span>OceanProtect</span></li></ul>
<p>原位置参数说明，请参见<a href="nas_s_0061.html#nas_s_0061__table1452025982813">表1</a>；新位置的参数说明，请参见<a href="nas_s_0059.html#nas_s_0059__table429861453516">表3</a>和<a href="nas_s_0059.html#nas_s_0059__table1248313820599">表4</a>。本机位置参数说明如<a href="#nas_s_0062__zh-cn_topic_0000001208774470_table165841851143">表1</a>所示。</p>

<div class="tablenoborder"><a name="nas_s_0062__zh-cn_topic_0000001208774470_table165841851143"></a><a name="zh-cn_topic_0000001208774470_table165841851143"></a><table cellpadding="4" cellspacing="0" summary="" id="nas_s_0062__zh-cn_topic_0000001208774470_table165841851143" frame="border" border="1" rules="all"><caption><b>表1 </b>恢复至本机位置参数说明</caption><colgroup><col style="width:10.54%"><col style="width:89.46%"></colgroup><thead align="left"><tr id="nas_s_0062__nas_s_0060_row6585115119414"><th align="left" class="cellrowborder" valign="top" width="10.54%" id="mcps1.3.5.2.5.2.4.2.3.1.1"><p id="nas_s_0062__nas_s_0060_p1658575112415">参数</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="89.46%" id="mcps1.3.5.2.5.2.4.2.3.1.2"><p id="nas_s_0062__nas_s_0060_p175851451349">说明</p>
</th>
</tr>
</thead>
<tbody><tr id="nas_s_0062__nas_s_0060_row1158517518417"><td class="cellrowborder" valign="top" width="10.54%" headers="mcps1.3.5.2.5.2.4.2.3.1.1 "><p id="nas_s_0062__nas_s_0060_p158517511048"><span id="nas_s_0062__nas_s_0060_text191084227520">文件系统</span></p>
</td>
<td class="cellrowborder" valign="top" width="89.46%" headers="mcps1.3.5.2.5.2.4.2.3.1.2 "><p id="nas_s_0062__nas_s_0060_p15851451646">选择恢复到本机的文件系统。首次恢复到本机位置时，可单击<span class="uicontrol" id="nas_s_0062__nas_s_0060_uicontrol124218413611">“<span id="nas_s_0062__nas_s_0060_text128775231364">创建</span>”</span>新建文件系统。创建文件系统的详细操作，请参见<a href="nas_s_0100.html">创建文件系统</a>。</p>
</td>
</tr>
<tr id="nas_s_0062__nas_s_0060_row1358516511642"><td class="cellrowborder" valign="top" width="10.54%" headers="mcps1.3.5.2.5.2.4.2.3.1.1 "><p id="nas_s_0062__nas_s_0060_p1725084223716"><span id="nas_s_0062__nas_s_0060_text132479819312">覆盖规则</span></p>
</td>
<td class="cellrowborder" valign="top" width="89.46%" headers="mcps1.3.5.2.5.2.4.2.3.1.2 "><p id="nas_s_0062__nas_s_0060_p172501042153719">当恢复路径中存在同名文件时，选择替换或跳过已存在的文件。</p>
<ul id="nas_s_0062__nas_s_0060_ul15250642173717"><li id="nas_s_0062__nas_s_0060_li52501642173711"><span id="nas_s_0062__nas_s_0060_text14250042193711">直接替换已经存在的文件</span></li><li id="nas_s_0062__nas_s_0060_li15250154283711"><span id="nas_s_0062__nas_s_0060_text52507424377">忽略已存在的文件</span></li><li id="nas_s_0062__nas_s_0060_li22501342183719"><span id="nas_s_0062__nas_s_0060_text32501742143716">只替换比恢复文件更旧的文件</span></li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</p></li><li><span>单击<span class="uicontrol" id="nas_s_0062__nas_s_0061_uicontrol8682163517294">“<span id="nas_s_0062__nas_s_0061_text923644131319">确定</span>”</span>。在执行恢复副本数据的操作前，请先确认恢复的目标位置有足够的剩余空间用于恢复。确认方法如下：</span><p><ul id="nas_s_0062__nas_s_0061_ul698861123720"><li id="nas_s_0062__nas_s_0061_li17226131513373">全量副本恢复要求：目标位置剩余空间≥全量副本缩减前数据量，全量副本缩减前数据量通过查看该备份任务在<span class="uicontrol" id="nas_s_0062__nas_s_0061_uicontrol18893135113394">“任务信息”</span>中的<span class="uicontrol" id="nas_s_0062__nas_s_0061_uicontrol6781131216406">“缩减前数据量”</span>。</li><li id="nas_s_0062__nas_s_0061_li3988191115372">永久增量副本或增量副本恢复要求：目标位置剩余空间≥此次永久增量副本或增量副本到上一次全量副本的所有副本缩减前数据量总和，缩减前数据量总和是这些副本备份任务在<span class="uicontrol" id="nas_s_0062__nas_s_0061_uicontrol2061203754116">“任务信息”</span>中的<span class="uicontrol" id="nas_s_0062__nas_s_0061_uicontrol561253514498">“缩减前数据量”</span>之和。</li></ul>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题：</strong> <a href="nas_s_0056.html">恢复</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>